﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Collections;

namespace E.Y.E.Jobs
{
    public class CommandTypeManagerEnumClass
    {
        //**************************************************************//
        //      NOT COMPLETED! PLEASE UPDATE YOURSELF.          BY TIAN HE.
        //**************************************************************//
        public enum CommandType { InvalidCommand, Add, Edit, Delete, Search };
    }

    public class CommandTypeManager
    {
        String CurrDatabase;
        ArrayList KeywordDatabase;
        //**************************************************************//
        //      NOT COMPLETED! PLEASE UPDATE YOURSELF.          BY TIAN HE.
        //      You might need file Load/Save. Do add in yourself. :)
        //**************************************************************//

        public CommandTypeManager(string FileName)
        {
            CurrDatabase = FileName;
        }

        public bool AddCommandType(CommandTypeManagerEnumClass.CommandType targetType, string customizedCommand)
        {
            return true;
        }

        public bool EditCommandType(CommandTypeManagerEnumClass.CommandType targetType, string customizedCommand)
        {
            return true;
        }

        public bool DeleteCommandType(string customizedCommand)
        {
            return true;
        }

        public ArrayList GetCurrList()
        {
            return KeywordDatabase;
        }

        public bool RestoreData(ArrayList RestoreData)
        {
            KeywordDatabase = RestoreData;
            return true;
        }

        public string TypeToString(CommandTypeManagerEnumClass.CommandType ConvertingType)
        {
            return "";
        }

        public CommandTypeManagerEnumClass.CommandType IsCommandKeyword(string testingWord)
        {
            return CommandTypeManagerEnumClass.CommandType.InvalidCommand;
        }
    }
}
